package com.campsys.service.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;
import java.time.LocalDateTime;

@Data
public class CampClassDTO {
    
    private Long id;
    
    @NotNull(message = "活动ID不能为空")
    private Long activityId;
    
    @NotBlank(message = "班级名称不能为空")
    private String name;
    
    private String description;
    
    @NotNull(message = "年级层次不能为空")
    private Integer gradeLevel;
    
    private Integer minAge;
    
    private Integer maxAge;
    
    private Integer maxStudents = 30;  // 默认30人
    
    @NotNull(message = "至少需要一名教师")
    @Size(min = 1, message = "至少需要一名教师")
    private List<TeacherAssignDTO> teachers;  // 教师分配列表
    
    // 活动信息（仅用于返回）
    private String activityName;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
} 